//
//  FuncViewController.m
//  LibDemo
//
//  Created by Gikki Ares on 2020/9/5.
//

#import "JsButtonController.h"
#import <JsUtilitySdk/JsButtonLiiTwo.h>
#import <JsUtilitySdk/JsButtonLiiOne.h>

@interface JsButtonController ()<
JsButtonLiiOneDelegate,
JsButtonLiiTwoDelegate
>
{
	JsButtonLiiOne * mBtnOne;
	JsButtonLiiTwo * mBtnTwo;
}

@end

@implementation JsButtonController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
	
	self.view.backgroundColor = [UIColor whiteColor];
	
//	marr = @[@""];
	[self setupUi];
	
	
}

- (void)setupUi {
	if(!mBtnTwo) {
		mBtnTwo = [[JsButtonLiiTwo alloc]initWithFrame:CGRectMake(0, 200, 100, 100)];
		mBtnTwo.selectedVm.foregroundImage = [UIImage imageNamed:@"arrow-down.png"];
		mBtnTwo.selectedVm.foregroundImage = [UIImage imageNamed:@"arrow-down.png"];
		mBtnTwo.delegate = self;
		[self.view addSubview:mBtnTwo];
	}

}

- (void)viewDidLayoutSubviews {
	[super viewDidLayoutSubviews];
}

# pragma mark 4 Delegate
- (void)jsButtonLiiOneClicked:(JsButtonLiiOne *)button {
	
}
@end
